﻿using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MvcSample.Data.Core
{
    [Bind(nameof(Wechat))]
    public class ApplicationUser
        : IdentityUser
    {
        [JsonProperty(Required = Required.Always)]
        public string QQ { get; set; }
        [JsonIgnore]
        public string Wechat { get; set; }
        [BindRequired]
        [BindNever]
        public string Mobile { get; set; }
    }
}
